package com.zazu.mycl.application.commands;

import com.zazu.mycl.application.CommandRunner;
import com.zazu.mycl.application.terminalCommand;

public class GetVarCommand implements terminalCommand {

	public String getSignature() {
		
		return null;
	}

	public void run(String[] args, CommandRunner commandRunner,
			String commandLine, String outputFileName) {

		if(args.length >= 2)
		{
			commandRunner.SetLine(commandRunner.getVariable(args[1]));
		}
		else
		{
			commandRunner.SetLine("No variable name specified. Please Enter one.");
		}


	}

	public void runSubCommand(String[] args, String commandLine) {
		// TODO Auto-generated method stub

	}

	public boolean isThreadable() {
		// TODO Auto-generated method stub
		return isThreadable;
	}

	private boolean isThreadable = false;
}
